package main

import (
	. "go-canal/config"
	"go-canal/service"
	"go-canal/utils/configure"
	"go-canal/utils/env"
)

func main() {
	var conf Config
	confPath := "etc/canal.yaml"
	if env.ReadEnv() != "" {
		confPath = env.ReadEnv()
	}
	configure.InitYamlConf(&conf, confPath)

	service.NewService(conf)

	service.Run()
}
